.parseRulesCollapse {
  .collapseHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    
    &:hover {
      background-color: #f9fafb;
    }
    
    &.expanded {
      background-color: #f9fafb;
      border-color: #d1d5db;
    }
    
    &.disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }

  .ruleTitle {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
  }

  .ruleDesc {
    color: #6b7280;
    font-size: 12px;
    margin-left: 8px;
  }

  .collapseContent {
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-top: 8px;
  }

  .ruleDescription {
    color: #374151;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
  }

  .examples {
    h4 {
      color: #374151;
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 12px;
    }
  }

  .example {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  .exampleItem {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  .exampleLabel {
    min-width: 60px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    margin-top: 2px;
  }

  .exampleCode {
    flex: 1;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    color: #1f2937;
    word-break: break-all;
    white-space: pre-wrap;
    line-height: 1.4;
  }
  
  .collapseContent {
    margin-top: 8px;
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
  }
  
  .ruleItem {
    padding: 12px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    margin-bottom: 12px;
    
    &:last-child {
      margin-bottom: 0;
    }
  }
  
  .ruleHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  
  .ruleName {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    
    &:focus {
      outline: none;
      border-color: #3b82f6;
      box-shadow: 0 0 0 1px #3b82f6;
    }
  }
  
  .ruleControls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
  }
  
  .enableCheckbox {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
  }
  
  .deleteButton {
    color: #ef4444;
    font-size: 12px;
    
    &:hover {
      color: #dc2626;
    }
  }
  
  .ruleFields {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .fieldLabel {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
  }
  
  .fieldInput {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    resize: none;
    
    &:focus {
      outline: none;
      border-color: #3b82f6;
      box-shadow: 0 0 0 1px #3b82f6;
    }
  }
  
  .addRuleButton {
    width: 100%;
    padding: 8px;
    border: 2px dashed #d1d5db;
    border-radius: 4px;
    color: #6b7280;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    
    &:hover {
      border-color: #9ca3af;
      color: #4b5563;
    }
  }
  
  .emptyState {
    text-align: center;
    padding: 32px 16px;
    color: #6b7280;
  }
  
  .addFirstRuleButton {
    margin-top: 8px;
    padding: 8px 16px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    
    &:hover {
      background-color: #2563eb;
    }
  }
} 